<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<?php echo Yii::app()->request->getBaseUrl(true);?>/" />
<?php
$baseUrl = Yii::app()->request->baseUrl;
Yii::app()->clientScript
    ->registerMetaTag($this->description, 'description')
    ->registerMetaTag($this->getKeywords(), 'keywords')
    ->registerCssFile($baseUrl."/css/bootstrap.min.css")
    ->registerCoreScript('jquery')
    ->registerScriptFile($baseUrl . '/js/waypoints/waypoints.min.js')
    ->registerScriptFile($baseUrl . '/js/jquery.serializeObject.js')
    ->registerScriptFile($baseUrl . '/js/scrollpagination.js')
    ->registerScriptFile($baseUrl . '/js/zy.js');


//$cs = Yii::app()->dynamicRes;
//$cs->registerCssFile($baseUrl."/css/bootstrap.min.css");
//$cs->registerScriptFile($baseUrl . '/js/bootstrap.min.js');
//$cs->registerScriptFile($baseUrl . '/js/zy.js');
?>
<title><?php echo $this->getTitle();?></title>
<script type="text/javascript">
$.extend(true, $.zy.zyObj, {
    baseUrl:'<?php echo $baseUrl;?>'
});
$(document).ready(function(){
	$.zy._base();
});
</script>
</head>
<body>
<?php echo $content;?>
<script type="text/javascript">
$(document).ready(function(){
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-29468807-1']);
    _gaq.push(['_trackPageview']);
    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();    
});
</script>
</body>
</html>